from django.shortcuts import render_to_response
from django.shortcuts import render
from hotel.models import *
from offer.models import *
# Create your views here.

def hotel(request):
		hotels=Hotel.objects.all()	
		context={'hotels':hotels,'sessionid':request.session['user_id']}
		return render_to_response('hotel/hotel.html', context)
def offer(request,offer_id):
	request.session.session_key
	if request.method=='GET':
		d=offer_id
		offer=Offer.objects.filter(hotelId_id=d)
		context={'offers':offer}
		return render_to_response('offer/offer.html', context)
